<!DOCTYPE html>
<!-- 废弃 -->
<html>
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>搜索商品</title>
        <link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/platform.css" />
        <link rel="stylesheet" href="css/table.css" />
        <link rel="stylesheet" href="js/magicsuggest-min.css" />
        <link rel="stylesheet" href="css/property.css" />
    </head>

    <body>
        <div class="header">
            <div class="u-title">添加簇商品</div>
        </div>
        <div class="cluster-manage" ms-controller="mainController">
            <div class="u-multiform">
                <div class="column">
                    <div class="cell">
                        <label>商品：</label>
                        <div class="cnt-box">
                            <input type="text" class="u-ipt" ms-duplex="comm" placeholder="商品编码/名称" />
                        </div>
                    </div>
                </div>
                <div class="column">
                    <div class="cell">
                        <label></label>
                        <button class="u-btn small"  ms-class="dis:comm==''" ms-click="search">搜索</button>
                    </div>
                </div>
            </div>
            <p ms-if="commType==0">推荐商品</p>
            <p ms-if="commType==1">搜索商品</p>
            <div ms-if="commType==0" class="tableWrapper recomm">
                <table class="table">
                    <thead>
                        <tr>
                            <th>商品</th>
                            <th>商品编码</th>
                            <th>商品名称</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ms-repeat-row="recommList">
                            <td>
                                <img ms-attr-src="getUrl(row.commCode)" />
                            </td>
                            <td>{{row.commCode}}</td>
                            <td>{{row.commName}}</td>
                            <td class="operate">
                                <a href="javascript:;" ms-click="addComm(row.commCode)">添加</a>
                                <div class="add-comm">
                                    <div class="la-ball-spin-clockwise-fade">
                                        <div></div>
                                        <div></div>
                                        <div></div>
                                        <div></div>
                                        <div></div>
                                        <div></div>
                                        <div></div>
                                        <div></div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div ms-if="commType==1">
                <div id="exptTable" ms-controller="exptTable"></div>
                <script type="avalon" id="tableSaleExpt">
                    <div class="tableWrapper souso">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>商品</th>
                                    <th>商品编码</th>
                                    <th>商品名称</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ms-repeat-row="sources">
                                    <td>
                                        <img ms-attr-src="customFuncs.getUrl(row.partnumber)" />
                                    </td>
                                    <td>{{row.partnumber}}</td>
                                    <td>{{row.catentdesc}}</td>
                                    <td class="operate">
                                        <a href="javascript:;" ms-click="customFuncs.addComm(row.partnumber)">添加</a>
                                        <div class="add-comm">
                                            <div class="la-ball-spin-clockwise-fade">
                                                <div></div>
                                                <div></div>
                                                <div></div>
                                                <div></div>
                                                <div></div>
                                                <div></div>
                                                <div></div>
                                                <div></div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                            <tfoot>
                                <tr>
                                    <td colspan="4">
                                        <div class="pager">
                                            <div class="first-page" ms-click="firstpage('outside')" ms-class={{firstpagestyle}}>首页</div>
                                            <div class="pre-page" ms-click="prepage('outside')" ms-class={{prepagestyle}}>上一页</div>
                                            <div class="current-page">
                                                第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage('outside')" />页
                                                <span class="totalpage">共 {{totalpage}} 页</span>
                                            </div>
                                            <div class="next-page" ms-click="nextpage('outside')" ms-class={{nextpagestyle}}>下一页</div>
                                            <div class="last-page" ms-click="lastpage('outside')" ms-class={{lastpagestyle}}>尾页</div>
                                            <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                        </div>
                                    </td>
                                </tr>
                            </tfoot>
                        </table>
                    </div>
                </script>
            </div>
            <div class="return">
                <button class="u-btn gray" ms-click="returnPage()">返回</button>
            </div>
            <div class="u-popup" id="popup_tips">
                <div class="bg"></div>
                <div class="asTable">
                    <div class="asTableCell">
                        <div class="asCell alert">
                            <a href="javascript:;" class="close btn-close">×</a>
                            <p class="title">提示</p>
                            <div class="container">
                                <div class="error"></div>
                                <p></p>
                            </div>
                            <div class="btn-box">
                                <button class="u-btn btn-close">确定</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="loadData"></div>
        <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/swift-ui-table-1.1.js"></script>
        <script src="js/magicsuggest-min.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/add-cluster.js"></script>
    </body>

</html>